﻿using System.Text.Json.Serialization;

namespace In66.Net.EventBus.RabbitMq.IIntegration;

/// <summary>
/// 事件基本对象,所有的事件均需要继承此类
/// </summary>
public class IntegrationEvent : IIntegrationEvent
{
    /// <inheritdoc />
    [JsonInclude]
    public string EventId { get; } = Guid.NewGuid().ToString("N");

    /// <inheritdoc />
    [JsonInclude]
    public DateTime EventCreateDate { get; } = DateTime.Now.ToLocalTime();
}